package encore.portal.container.services;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

import encore.portal.portlet.models.PortletApplicationDefinition;

public interface PortletAppDescriptorService {

	public PortletApplicationDefinition createPortletApplication();
	
	public PortletApplicationDefinition read(String name,String contextPath,InputStream in)throws IOException;
	
	public void mergeWebDescriptor(PortletApplicationDefinition applicationDefinition,InputStream webDescriptor)throws Exception;
	
	public void write(PortletApplicationDefinition portletDescriptor,OutputStream out)throws IOException;
	
}
